#include"Queue.h"

test1()
{
	Queue q;
	Queue* pq = &q;
	 QueueInit(pq);
	 QueuePush(pq, 5);
	 QueuePush(pq, 4);
	 QueuePush(pq, 3);
	 QueuePush(pq, 2);
	 QueuePush(pq, 1);
	 while (QueueEmpty(pq) == 0)
	 {
		 QDataType re = QueueFront(pq);
		 printf("%d ", re);
		 QueuePop(pq);
	 }
	 printf("\n");
	 QueuePush(pq, 1);
	 QueuePush(pq, 2);
	 QueuePush(pq, 3);
	 QueuePush(pq, 4);
	 QueuePush(pq, 5);
	 while (QueueEmpty(pq) == 0)
	 {
		 QDataType re = QueueFront(pq);
		 printf("%d ", re);
		 QueuePop(pq);
	 }
	 QueueDestroy(pq);

}

int main()
{
	test1();


	return 0;
}